<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>谷歌地图</title>
		<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDJW4jsPlNKgv6jFm3B5Edp5ywgdqLWdmc&callback=initMap" async defer></script>
	</head>
	<body>
		
		
		<div id="googleMap" style="width:500px;height:380px;"></div>
		
	</body>
</html>
<script>
	function initialize()
	{
		var mapProp = {
			center:new google.maps.LatLng(51.508742,-0.120850),
			zoom:5,
			mapTypeId:google.maps.MapTypeId.ROADMAP
		};
		var map=new google.maps.Map(document.getElementById("googleMap"), mapProp);
	}
	 
	google.maps.event.addDomListener(window, 'load', initialize);
	</script>